package com.menhai.personmanagement.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.StatisticsOfChronicDiseases;
import com.menhai.personmanagement.entity.co.StatisticsOfChronicDiseasesCo;
import com.menhai.personmanagement.mapper.StatisticsOfChronicDiseasesMapper;
import com.menhai.personmanagement.plus.Uuid;

@Service
public class StatisticsOfChronicDiseasesService extends Uuid {
	
	@Autowired
	private StatisticsOfChronicDiseasesMapper StatisticsOfChronicDiseasesMapper;

//	public List<StatisticsOfChronicDiseases> selectQuery(StatisticsOfChronicDiseases StatisticsOfChronicDiseases) {
//		return StatisticsOfChronicDiseasesMapper.selectQuery(
//				StatisticsOfChronicDiseases.getChronic(),
//				StatisticsOfChronicDiseases.getName(),
//				StatisticsOfChronicDiseases.getSex(),
//				StatisticsOfChronicDiseases.getAgeStart(),
//				StatisticsOfChronicDiseases.getAgeEnd(),
//				StatisticsOfChronicDiseases.getIdnumber(),
//				StatisticsOfChronicDiseases.getTelephony()
//				);
//	
//	}
	
	public IPage<StatisticsOfChronicDiseases> selectQuery(StatisticsOfChronicDiseasesCo StatisticsOfChronicDiseases){
        Page<StatisticsOfChronicDiseases> page = new Page<>(StatisticsOfChronicDiseases.getPageIndex(),StatisticsOfChronicDiseases.getPageSize());
        return StatisticsOfChronicDiseasesMapper.selectQuery(page,StatisticsOfChronicDiseases);
    }
	
	public List<StatisticsOfChronicDiseases> selectQueryExcel(StatisticsOfChronicDiseases StatisticsOfChronicDiseases) {
	return StatisticsOfChronicDiseasesMapper.selectQueryExcel(StatisticsOfChronicDiseases);
	}
}
